import { http } from "@/utils/http";
import type {
  IGetHomeBannerListApiResponse,
  IGetHomeDataListApiResponse,
} from "./models/homeModels";

/**
 * 获取首页轮播图
 * @returns IGetHomeBannerListApiResponse
 */
export const getHomeBannerListApi = () => {
  return http.get<IGetHomeBannerListApiResponse>("/cms/banner");
};

/**
 * 获取首页教师和课程数据
 * @returns
 */
export const getHomeDataListApi = () => {
  return http.get<IGetHomeDataListApiResponse>("/edu/index");
};
